import request from '@/utils/request'
import axios from "axios";


export function login(value) {
  return request({
    url: 'http://localhost:8200/sys/role/list', // http://192.168.200.185:8090/user/login
    method: 'post',
    value
  })
}

export function getInfo(token) {
  return request({
    url: 'http://localhost:8200/sys/role/list',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}

export function getAuthMenu(token) {
  return request({
    url: 'http://localhost:8200/sys/menu/rolemenuList',
    method: 'get',
    params: { token:token }
  })
  /*axios.get('http://localhost:8200/sys/role/userRole',{
    params:{
      token:token
    }
  }).then(res=>{
     return  res
  })*/


}
